package gates;

import java.awt.Graphics;

import master.QuantumRegister;

/**
 * A compound hadamard gate, consisting of Hadamard Gates acting on all the qubits in the system
 * 
 * 
 * @author Matthew
 *
 */

public class FullHadamard extends QuantumGate{
	

	
	//register specific so i can return an array of the size of the register
	public FullHadamard(){
		
		
		
	}
	
	public void actOnReg(QuantumRegister register){
		
		for (int i = 0; i < register.getQBitLength();i++){
			Hadamard H = new Hadamard(i);
			H.actOnReg(register);
		}
	}
	
	
	public int [] getActingBits(){
		int[] a = new int[1];
		a[0] = -1;
		return a;
		}
	
}
